package cn.globalph.housekeeper.ui.task.check

import cn.globalph.housekeeper.data.model.BaseModel
import cn.globalph.housekeeper.data.model.RoomInfoModel
import cn.globalph.housekeeper.data.params.RoomInfoParam
import cn.globalph.housekeeper.data.retrofit.HttpManager

class CheckCardRepository(
    private val httpManager: HttpManager
) {

    suspend fun uploadRoomInfo(id:String,param:RoomInfoParam):BaseModel<String>{
        return httpManager.api.uploadRoomInfo(id,param)
    }

    suspend fun uploadCheck(id:String):BaseModel<String>{
        return httpManager.api.uploadCheck(id)
    }

    suspend fun getRoomInfo(id:String):BaseModel<RoomInfoModel>{
        return httpManager.api.getCustomRoomInfo(id)
    }

    suspend fun getCheckInfo(id:String):BaseModel<String>{
        return httpManager.api.getCheckInfo(id)
    }
}